home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
advbas26.arc
/
ADVBAS.QRF
< prev
Wrap
Text File
|
1986-09-19
|
10KB
|
331 lines
ADVBAS v2.6 Quick Reference
Note: variable names here are chosen for special clarity and may not
match those found in the ADVBAS.DOC file. The names of the variables used
are not important per se and may be changed readily. This is a quick
reference for your convenience, and is not intended to be used without the
DOC file!
ADDMATI Add a scalar to an array.
CALL ADDMATI(ARRAYLOC, ARRAYSIZE, SCALAR, OVFLOWERR)
ANY2DEC Convert an integer in any base (2-35) to decimal (base 10).
CALL ANY2DEC(ANUM$, NBASE, DNUM, ERCD)
BKSCROLL Scroll part of the screen backwards or clear it.
BKSCROLL(LEFTCOL, TOPROW, RTCOL, BOTROW, LINES)
BKSPACE Destructive backspace.
CALL BKSPACE(COL, ROW): LOCATE ROW, COL
BSQ Squeeze the blanks out of a text string by encoding it.
CALL BSQ(ST$, SLEN)
BUSQLEN Tell how long a BSQed string will be once unsqueezed.
CALL BUSQLEN(ST$, SLEN)
BUSQ Unsqueeze a BSQed string (use this -after- BUSQLEN).
CALL BUSQ(ST$, USQST$)
CHECKSUM Calculate Xmodem-type checksum for a string.
CALL CHECKSUM(RECORD$, CHKSUM)
CLREOL Clear to the end of the current screen line.
CALL CLREOL
CRC Calculate Xmodem-type Cyclical Redundancy Check.
CALL CRC(RECORD$, HICRC, LOCRC)
DEC2ANY Converts a decimal (base 10) integer to any base (2-35).
CALL DEC2ANY(DNUM, NBASE, ANUM$, ALEN)
DELCHR Delete a char from the specified screen location.
CALL DELCHR(ROW, COL)
DELSUB Delete a subdirectory.
SUBDIR$ = SUBDIR$ + CHR$(0): CALL DELSUB(SUBDIR$, ERRCD)
DMPRINT Displays a string using only DOS functions.
CALL DMPRINT(ST$)
DRVSPACE Return free space left on disk (error returns negative value).
CALL DRVSPACE(DRV$, A,B,C): FREE = CSNG(A)*CSNG(B)*CSNG(C)
EXTRACT Extract a substring from a string using a given delimiter.
CALL EXTRACT(ST$, DLM$, INDEX, START, SLEN):
SUBSTR$ = MID$(ST$, START, SLEN)
FINDFIRSTF Get a file using wildcards (used for first call). See also
FINDNEXTF, GETNAMEF, GETATTRF, GETDATEF, GETTIMEF, GETSIZEF.
FIL$ = FIL$ + CHR$(0): CALL FINDFIRST(FIL$, ATTR, ERRCD)
FINDNEXTF Get the next file using wildcards (see FINDFIRSTF et al).
CALL FINDNEXTF(ERRCD)
GETATTRF Get the attribute of a file found with FINDxxxF.
CALL GETATTRF(ATTR)
GETDATEF Get the date of a file found with FINDxxxF.
CALL GETDATEF(MONTH, DAY, YEAR)
GETDOSV Get the current DOS version.
CALL GETDOSV(MAJORV, MINORV)
GETDRV Get the current default disk drive.
DRV$ = " ": CALL GETDRV(DRV$)
GETFATTR Get the attribute of a file.
FIL$ = FIL$ + CHR$(0): CALL GETFATTR(FIL$, ATTR)
GETFDATE Get the date of a file. If error, MONTH set to -1.
FIL$ = FIL$ + CHR$(0): CALL GETFDATE(FIL$, MONTH, DAY, YEAR)
GETFTIME Get the (24hr) time of a file. If error, HOUR set to -1.
FIL$ = FIL$ + CHR$(0): CALL GETFTIME(FIL$, HOUR, MINUTE, SECOND)
GETKEY Wait for and return one of a specified list of keys.
KY$=" ": CALL GETKEY(GOODKEY$, KY$)
GETLINE Returns a selected line from a saved screen (see SCRSAVE).
LINE$ = SPACE$(80): CALL GETLINE(SCRLOC, LINENR, LINE$, LLEN):
LINE$ = LEFT$(LINE$, LLEN)
GETNAMEF Get the filename of a file found using FINDxxxF.
FIL$ = SPACE$(12): CALL GETNAMEF(FIL$, FLEN):
FIL$ = LEFT$(FIL$, FLEN)
GETSIZEF Get the size of a file found using FINDxxxF.
CALL GETSIZEF(SIZELO, SIZEHI): SIZELO# = CDBL(SIZELO):
IF SIZELO<0 THEN SIZELO# = SIZELO# + 65536#
FILESIZE# = SIZELO# + CDBL(SIZEHI#) * 65536#
GETSUB Get the default subdirectory.
SUB$ = STRING$(64,0): CALL GETSUB(SUB$, SLEN):
SUB$ = "\" + LEFT$(SUB$, SLEN)
GETTIMEF Return the (24hr) time of a file found using FINDxxxF.
CALL GETTIMEF(HOUR, MINUTE, SECOND)
INSCHR Insert a space at the specified screen location.
CALL INSCHR(ROW, COL)
KEYPRESS Returns nonzero if a key is waiting in the keyboard buffer.
CALL KEYPRESS(KYHIT)
LOCASE Convert uppercase characters to lowercase.
CALL LOCASE(ST$)
LROTATE Rotate the characters in a string left once.
CALL LROTATE(ST$)
MAKESUB Make a subdirectory. Sets ERRCD if error.
SUB$ = SUB$ + CHR$(0): CALL MAKESUB(SUB$, ERRCD)
MDELCHR Delete char at current cursor position, obeying MWINDOW (qv).
CALL MDELCHR.
MINSCHR Insert space at current cursor position, obeying MWINDOW (qv).
CALL MINSCHR.
MPRINTC Display a character using DOS calls, obeying MWINDOW (qv).
CALL MPRINTC(CH$, COL, ROW): LOCATE ROW, COL
MPRINT Display a string using DOS calls, obeying MWINDOW (qv).
CALL MPRINT(ST$, COL, ROW): LOCATE ROW, COL
MULTIAND Performs AND on each char of a string with a supplied value.
CALL MULTIAND(ST$, ANDVAL)
MULTIOR Performs OR on each char of a string.
CALL MULTIOR(ST$, ORVAL)
MULTIXOR Performs XOR on each char of a string.
CALL MULTIXOR(ST$, XORVAL)
MWINDOW Set up a screen window for MPRINT/MPRINTC/MINSCHR/MDELCHR.
CALL MWINDOW(LEFTCOL, TOPROW, RTCOL, BOTROW)
QPRINT Quick print to screen. Doesn't understand control codes.
CALL QPRINT(ST$, ROW, COL)
READBITF Returns a value from an array of arbitrary (1-8) bit length.
CALL READBITF(ARRAYLOC, INDEX, BITLEN, VALUE)
RECOLOR Switch everything on the screen of one color to another (text).
CALL RECOLOR(OLDCOLRATTR, NEWCOLRATTR)
REVERSE Reverse the chars in a string.
CALL REVERSE(ST$)
RROTATE Rotate the chars in a string right once.
CALL RROTATE(ST$)
SCROLL Scroll a section of the screen or clear it.
CALL SCROLL(LEFTCOL, TOPROW, RTCOL, BOTROW, LINES)
SCRREST Restore the screen display from an array (see SCRSAVE).
CALL SCRREST(ARRAYLOC)
SCRRESTP Restore the screen display to a given page from an array.
CALL SCRREST(ARRAYLOC, SCRNPAGE)
SCRRESTPD Restore the screen to a given page with direct screen writes.
CALL SCRREST(ARRAYLOC, SCRNPAGE)
SCRSAVE Save the current screen display to an array.
CALL SCRSAVE(ARRAYLOC)
SCRSAVEP Save the display on a given screen page to an array.
CALL SCRSAVEP(ARRAYLOC, SCRNPAGE)
SCRSAVEPD Save a given screen page with direct screen reads to an array.
CALL SCRSAVEPD(ARRAYLOC, SCRNPAGE)
SETCOMM Set a communications port to the given parameters.
CALL SETCOMM(COMMPORT, BPS, PARITY, WORDLENGTH, STOPBITS)
SETDRV Set the default drive.
DRV$ = "B": CALL SETDRV(DRV$)
SETFATTR Set a file's attribute.
FIL$ = FIL$ + CHR$(0): SETFATTR(FIL$, ATTR)
SETFTD Set a file's time and date. If error, return -1 in MONTH.
FIL$ = FIL$ + CHR$(0):
CALL SETFTD(FIL$, MONTH, DAY, YEAR, HOUR, MINUTE, SECOND)
SETMATI Set an array to a given scalar (integer) value.
CALL SETMATI(ARRAYLOC, ARRAYSIZE, VALUE)
SETSUB Set the default subdirectory. Returns -1 if error.
SUB$ = SUB$ + CHR$(0): CALL SETSUB(SUB$, ERRCD)
SOUNDEX Returns the Soundex code for a string.
SCODE$ = ST$: CALL SOUNDEX(ST$, SCODE$, SLEN):
SCODE$ = LEFT$(SCODE$, SLEN)
STRIP Strips occurrences of a target character from a string.
CALL STRIP(ST$,TCHR$,SLEN): ST$ = LEFT$(ST$, SLEN)
STRIPRANGE Strips chars within a given (inclusive) range from a string.
CALL STRIPRANGE(ST$, LO, HI, SLEN): ST$ = LEFT$(ST$, SLEN)
UPCASE Convert a string to uppercase.
CALL UPCASE(ST$)
WEEKDAY Return the weekday (1 - 7, Sunday thru Saturday).
CALL WEEKDAY(DAY)
WRITEBITF Put a value in an array of arbitrary (1-8) bit length.
CALL WRITEBITF(ARRAYLOC, INDEX, BITLEN, VALUE)
XLATE Translate a string, char by char, using a translation table.
CALL XLATE(CH$, XLATETABL$)
XMPRINT Translate a char, and if it's not NUL, display it via DOS.
CALL XMPRINT(CH$, XLATETABL$, COL, ROW): LOCATE ROW, COL
XQPRINT Extended quick print, with color and page selection.
CALL XQPRINT(ST$, ROW, COL, COLOUR, PAGE)
XQPRINTD Extended direct quick print, with color and page selection.
CALL XQPRINTD(ST$, ROW, COL, COLOUR, PAGE)